package com.dream.cn.websocket.controller;

import com.dream.cn.websocket.service.WebSocketService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

@RestController
@RequestMapping("/msg")
public class MessageController {

    @RequestMapping("/send/{conId}")
    public String sendMsg(@PathParam("conId") String conId){
        WebSocketService.sendInfo("测试消息发送","1212");
        return  "发送消息";
    }

}
